package com.bsj.power.pls.web;

import com.bsj.power.common.config.global.JsonResult;
import com.bsj.power.common.def.dto.PageDTO;
import com.bsj.power.common.def.dto.alarmReport.AlarmReportSearchDTO;
import com.bsj.power.common.def.vo.GpggaVO;
import com.bsj.power.common.def.vo.pls.AlarmReportCountVO;
import com.bsj.power.pls.service.GpggaService;
import com.bsj.power.pls.service.ScheduledTasksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description GpggaController
 * @time 2024/11/28 16:20
 */
@RestController
@RequestMapping("/gpgga")
public class GpggaController {

    @Autowired
    private GpggaService gpggaService;

    /**
     * 获取GPGGA数据列表
     *
     * @param pageDTO
     * @param unitNo
     * @return com.bsj.power.common.config.global.JsonResult<java.util.List < com.bsj.power.common.def.vo.GpggaVO>>
     * @author ljx
     * @time 2024/11/28 16:44
     */
    @GetMapping("/list")
    public JsonResult<List<GpggaVO>> list(PageDTO pageDTO, Integer unitNo) {
        return gpggaService.listGpgga(pageDTO, unitNo);
    }

}
